﻿Public Class CongTyBUS
    Public Shared Function GetAllCongTyBUS() As DataTable

        Return CongTyDAO.GetAllCongTyDAO()
    End Function
    Public Shared Function GetMaCongTyBUS() As DataTable

        Return CongTyDAO.GetMaCongTyDAO()
    End Function
    Public Shared Sub InsertCongTyBUS(ByVal CongTy As CongTyDTO)

        CongTyDAO.InsertCongTyDAO(CongTy)

    End Sub

    Public Shared Sub UpdateCongTyBUS(ByVal CongTy As CongTyDTO)

        CongTyDAO.UpdateCongTyDAO(CongTy)

    End Sub
    Public Shared Sub DeleteCongTyBUS(ByVal MaCongTy As Integer)
        CongTyDAO.DeleteCongTyDAO(MaCongTy)

    End Sub
    'ByVal TenCongty As String, ByVal TenQuan As Integer, ByVal Loai As Integer
    Public Shared Function TimKiemCongTyBUS(ByVal TenCongty As String, ByVal MaQuan As Integer, ByVal Loai As Integer) As DataTable

        Return CongTyDAO.TimKiem_CongTyDAO(TenCongty, MaQuan, Loai)
    End Function
End Class
